#ifndef UDPLISTENER_H
#define UDPLISTENER_H

#include"Typedef.h"
#include<QUdpSocket>

class UdpListener: public QObject
{
    Q_OBJECT
public:
    UdpListener(QObject *parent = nullptr);
public slots:
    void readPendingDatagrams();

private:
    QUdpSocket * udpSocket;

};

#endif // UDPLISTENER_H
